
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class ChoiceChoiceCfg : public ManualSingleton <ChoiceChoiceCfg>
{
	friend ManualSingleton <ChoiceChoiceCfg>;
public:
	ChoiceChoiceCfg();
	~ChoiceChoiceCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const ChoiceChoiceCfgInfo *GetChoiceChoiceCfgInfo(int32_t id);
	const ChoiceChoiceCfgMap *GetChoiceChoiceCfgMap() { return &m_ChoiceChoiceCfgMap; }
private:
	ChoiceChoiceCfgMap m_ChoiceChoiceCfgMap;
};

#define  g_MakeChoiceChoiceCfgTable() (ChoiceChoiceCfg::Instance())
#define  g_GetChoiceChoiceCfgTable() (ChoiceChoiceCfg::GetInstance())
#define  g_DelChoiceChoiceCfgTable() (ChoiceChoiceCfg::Destroy())